//
//  DataOfTestCollect.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/21
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfTestCollect.h"
#import "FavoriteOfDataTestCollect.h"

@implementation DataOfTestCollect
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"favorite"]) {
        NSMutableArray<FavoriteOfDataTestCollect *> *mArrayOfFavoriteOfDataTestCollect = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FavoriteOfDataTestCollect *favoriteOfDataTestCollect = [FavoriteOfDataTestCollect modelDic:dic];
            [mArrayOfFavoriteOfDataTestCollect addObject:favoriteOfDataTestCollect];
        }
        _favorite = mArrayOfFavoriteOfDataTestCollect;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"favorite" : [FavoriteOfDataTestCollect class]};
}

@end
